package com.wwj.pay.service.handler;

import com.egzosn.pay.common.api.PayMessageHandler;
import com.egzosn.pay.common.api.PayService;
import com.egzosn.pay.common.bean.PayMessage;
import com.egzosn.pay.common.bean.PayOutMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 *
 * Created by ZaoSheng on 2016/6/1.
 */
public abstract class BasePayMessageHandler implements PayMessageHandler {
    protected Logger logger = LoggerFactory.getLogger(getClass());

    //支付账户id
    private Integer payId;

    public BasePayMessageHandler(Integer payId) {
        this.payId = payId;
    }

    public Integer getPayId() {
        return payId;
    }


    /**
     * 需要自己子模块重写该方法
     * @return
     */
    protected PayOutMessage business(PayMessage payMessage, Map<String, Object> context, PayService payService) {
        return null;
    }
}
